package com.youlu.campus.service.linker;

import com.youlu.campus.entity.ShortUrlConfig;
import com.youlu.campus.entity.VO.req.ShortUrlConfigQueryVO;
import org.springframework.data.domain.Page;

public interface ShortUrlConfigService {
    Page<ShortUrlConfig> list(ShortUrlConfigQueryVO req);

    boolean create(ShortUrlConfig req);

    boolean update(ShortUrlConfig req);

    ShortUrlConfig findOne(String id);

    boolean delete(String id);

    String generateShortUrl(String longUrl);

    ShortUrlConfig findByKey(String key);

    /**
     * 批量修改 短连接
     */
    void updateAllDomain();

}
